export const clear = () => {
  localStorage.clear()
}
export const getKey = (key) => {
  const value = localStorage.getItem(key)
  return value
}
export const setKey = (key, value) => {
  if (value) {
    localStorage.setItem(key, JSON.stringify(value))
  } else {
    localStorage.setItem(key, value)
  }
}
